package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 入库物料表
 * </p>
 *
 * @author WEN
 * @since 2024-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjStoreInboundMaterial对象", description="入库物料表")
public class ZjStoreInboundMaterial implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "入库表ID")
    private Long storeInboundId;

    @ApiModelProperty(value = "物料类型：1-成品 ，2-备件")
    private Integer type;

    @ApiModelProperty(value = "入库状态：1-待审核，2-已审核，3-作废/驳回")
    private Integer status;

    @ApiModelProperty(value = "仓库ID")
    private Long storeId;

    @ApiModelProperty(value = "仓库仓位表ID")
    private Long storePositionId;

    @ApiModelProperty(value = "商品物料ID")
    private Long goodsId;

    @ApiModelProperty(value = "商品物料规格表ID")
    private Long goodsSpecId;

    @ApiModelProperty(value = "物料单价")
    private BigDecimal price;

    @ApiModelProperty(value = "物料入库数量")
    private Long qty;

    @ApiModelProperty(value = "物料出库备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
